using System;
using System.Security.Policy;
using NUnit.Framework;

namespace Crawler.Tests
{
	/// <summary>
	/// Summary description for WholeWorkingScenario.
	/// </summary>
	[TestFixture]
	public class WholeWorkingScenario
	{
		IScenarioFactory scenarioFactory = ScenarioFactory.scenarioFactory ;
		private string pathToCache;
		private string pathToDestination;
		private string domain;

		[SetUp]
		public void Initialize()
		{
			
		}

		public void WholeScenarioHome()
		{
			pathToDestination = @"e:\testdata\home";
			domain = @"http://127.0.0.1/home/";
			pathToCache = @"e:\cache";
			Logger.FileLogged +=new FileLoggedHandler(Logger_FileLogged); 
			scenarioFactory.Initialize(pathToCache,pathToDestination,domain) ;	
			scenarioFactory.AddUrlToUrlStackAndTrigger(new Url(@"http://127.0.0.1/home/index.htm"), true) ;
		}

		public void WholeScenarioManual() 
		{
			pathToDestination = @"e:\testdata\manual";
			domain = @"http://127.0.0.1/manual/";
			pathToCache = @"e:\cache";
			scenarioFactory.Initialize(pathToCache,pathToDestination,domain) ;	
			scenarioFactory.AddUrlToUrlStackAndTrigger(new Url(@"http://127.0.0.1/manual/index.html"), true) ;
		}

		private void Logger_FileLogged(string nameOfFileLogged) {

		}
	}
}
